package com.block.db.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 线索基本信息表
 * </p>
 *
 * @author 
 * @since 2023-12-25
 */
@Getter
@Setter
@TableName("lq_source_base_info")
public class SourceBaseInfo implements Serializable {

    private static final long serialVersionUID = 1L;

  @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String channelCode;

    private String channelName;

    /**
     * API   APIB
     */
    private String type;

    private BigDecimal priceAmount;
    private BigDecimal priceRate;
    private BigDecimal lessRate;// 扣量率（0-1）
    private Integer requestCountLimit;

    private Integer status;

    private String apiKey;

    private String apiSecret;

    private String pubKey;

    private String priKey;

    private String callbackUrl;

    private String factoryType;

    private Integer checkTimeout;
    private Integer registerTimeout;

    private BigDecimal typeRate;
    private String priceType;

    //上游限制最低金额
    private BigDecimal checkMinPrice;

    // 成交最低价（当实际成交价大于成交最高价的时候，在成交最低价-成交最高价之间取值，替换实际成交价，返回给上游）
    private BigDecimal dealMinPrice;
    private BigDecimal dealMaxPrice;


}
